<template>
    <div class="fullScreen-card" v-if="dialogShow">
        <div class="container" :style="{ '--padding': `${padding}px`, '--height': `${height}%` }">
            <slot></slot>
        </div>
    </div>
</template>

<script setup lang="ts">
import { toRefs } from 'vue';
const emit = defineEmits(['closeDialog']);
const props = defineProps({
    dialogShow: {
        type: Boolean,
        default: () => false
    },
    padding: {
        type: Number,
        default: () => 20
    },
    height: {
        type: Number,
        default: () => 87
    }
})

const { dialogShow } = toRefs(props);
</script>

<style lang="scss" scoped>
.fullScreen-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 4000;
    background-color: rgba(8, 36, 48, 1) !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    

    .container {
        padding: var(--padding);
        box-sizing: border-box;
        width: 100%;
        height: var(--height);
        overflow: hidden;
    }

}
</style>